package com.cskaoyan.day5;

public class GetBinary {
    public static void main(String[] args) {
        int num=100;
        System.out.printf(num+"的二进制表现形式是：");
        getBinary(100);
    }

    private static void getBinary(int num) {
        if (num == 0) {
            return;
        }
        getBinary(num / 2);
        System.out.print(num % 2);
    }
}
